<?php
declare (strict_types = 1);

namespace app\validate\api;

use app\validate\BaseValidate;
use think\facade\Cache;
use think\Validate;

class Register extends BaseValidate
{
    /**
     * 定义验证规则
     * 格式：'字段名' =>  ['规则1','规则2'...]
     *
     * @var array
     */
    protected $rule = [
        'mobile'=>'require|mobile|unique:users',
        'password'=>'require|min:6',
        'code'=>'require|checkCode',
        'username'=>'require'
    ];

    /**
     * 定义错误信息
     * 格式：'字段名.规则名' =>  '错误信息'
     * 验证验证码
     * @var array
     */
    protected $message = [];



}
